/**
 *
 * @author ace
 * @create 2017/6/28
 */
class ShareView extends ComponentEx {


    constructor() {
        super();
        this.skinName = "ShareViewSkin";
    }

    childrenCreated() {
        super.childrenCreated();

        this.top = this.bottom = this.left = this.right = 0;

        this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.hide, this);
    }

    show() {
        super.show();

        gameManager.layerManager.loadLayer.addChild(this);
    }

    hide() {
        super.hide();

        if (gameManager.layerManager.loadLayer.contains(this)) {
            gameManager.layerManager.loadLayer.removeChild(this);
        }
    }
}